{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}D:\Dropbox\mixer_experiment2\public\log_analysis_final_do.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 7 Dec 2016, 19:05:27
{txt}
{com}. 
. clear all
{txt}
{com}. set more off
{txt}
{com}. pause on
{txt}
{com}. program drop _all
{txt}
{com}. set matsize 800
{txt}
{com}. 
. 
. use "$F9\mixer_experiment2\preppingforpublicrelease\dyad_ready"
{txt}
{com}. 
. cd "$F9\mixer_experiment2\preppingforpublicrelease"
{res}D:\Dropbox\mixer_experiment2\preppingforpublicrelease
{txt}
{com}. 
. 
. 
. egen nightcombo=group(x_night y_night)
{txt}
{com}. 
. 
. set more off
{txt}
{com}. 
. 
. /********** Table 4: Main effect of Treatment on Collaboration**********/
. 
. 
. ** column 1 **
. set more off
{txt}
{com}. xi: ngreg any_coapplicant same_room if same_night==1 , id(x_participant_id y_participant_id) symmetric group(nightcombo)


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0012319{col 27}{space 2}  .000501{col 41}{space 6} .0006815{col 57}{space 1}    1.81
{col 1}{text}       _cons{col 14}{c |}{result}{space 2}  .001603{col 27}{space 2} .0002002{col 41}{space 6} .0003399{col 57}{space 1}    4.72
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad0.ster, replace
{res}{txt}file dyad0.ster saved

{com}. 
. ** column 2 **
. 
. xi: ngreg any_coapplicant same_room dum_1 dum_2 if same_night==1 , id(x_participant_id y_participant_id) symmetric group(nightcombo)


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0012319{col 27}{space 2} .0005008{col 41}{space 6} .0006829{col 57}{space 1}    1.80
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0002817{col 27}{space 2} .0004327{col 41}{space 6} .0006625{col 57}{space 1}    0.43
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0010084{col 27}{space 2} .0004659{col 41}{space 6} .0008357{col 57}{space 1}    1.21
{col 1}{text}       _cons{col 14}{c |}{result}{space 2} .0011879{col 27}{space 2}  .000273{col 41}{space 6} .0004279{col 57}{space 1}    2.78
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad1.ster, replace
{res}{txt}file dyad1.ster saved

{com}. 
. ** column 3 **
. 
. xi: ngreg any_coapplicant same_room onepostdoc bothpostdoc one_female both_female same_inst both_longwood one_imager both_imager ///
> same_clinicalarea previouscoauthor dum_1 dum_2 if same_night==1  , id(x_participant_id y_participant_id) symmetric group(nightcombo)


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0014047{col 27}{space 2} .0004981{col 41}{space 6} .0006669{col 57}{space 1}    2.11
{col 1}{text}  onepostdoc{col 14}{c |}{result}{space 2}-.0007603{col 27}{space 2} .0003751{col 41}{space 6} .0005265{col 57}{space 1}   -1.44
{col 1}{text} bothpostdoc{col 14}{c |}{result}{space 2}-.0014313{col 27}{space 2} .0004745{col 41}{space 6} .0006995{col 57}{space 1}   -2.05
{col 1}{text}  one_female{col 14}{c |}{result}{space 2} .0001748{col 27}{space 2} .0003885{col 41}{space 6} .0004922{col 57}{space 1}    0.36
{col 1}{text} both_female{col 14}{c |}{result}{space 2} .0009817{col 27}{space 2} .0007803{col 41}{space 6} .0015194{col 57}{space 1}    0.65
{col 1}{text}   same_inst{col 14}{c |}{result}{space 2} .0042358{col 27}{space 2} .0007176{col 41}{space 6} .0012796{col 57}{space 1}    3.31
{col 1}{text}both_longw~d{col 14}{c |}{result}{space 2}-.0001288{col 27}{space 2} .0004511{col 41}{space 6} .0006607{col 57}{space 1}   -0.19
{col 1}{text}  one_imager{col 14}{c |}{result}{space 2} .0008198{col 27}{space 2} .0003396{col 41}{space 6} .0004875{col 57}{space 1}    1.68
{col 1}{text} both_imager{col 14}{c |}{result}{space 2} .0024615{col 27}{space 2} .0006916{col 41}{space 6} .0010229{col 57}{space 1}    2.41
{col 1}{text}same_clini~a{col 14}{c |}{result}{space 2} .0041617{col 27}{space 2} .0009767{col 41}{space 6} .0014292{col 57}{space 1}    2.91
{col 1}{text}previousco~r{col 14}{c |}{result}{space 2}  .117627{col 27}{space 2} .0330634{col 41}{space 6} .0460937{col 57}{space 1}    2.55
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0001588{col 27}{space 2} .0004325{col 41}{space 6}  .000624{col 57}{space 1}    0.25
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0011779{col 27}{space 2} .0004719{col 41}{space 6} .0007772{col 57}{space 1}    1.52
{col 1}{text}       _cons{col 14}{c |}{result}{space 2}-.0010077{col 27}{space 2} .0004957{col 41}{space 6} .0006926{col 57}{space 1}   -1.46
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad2.ster, replace
{res}{txt}file dyad2.ster saved

{com}. 
. ***table
. estimates drop _all
{txt}
{com}. forvalues n=0(1)2 {c -(} 
{txt}  2{com}. estimates use dyad`n'.ster
{txt}  3{com}. eststo
{txt}  4{com}. {c )-}
{res}{txt}({res}est1{txt} stored)
{res}{txt}({res}est2{txt} stored)
{res}{txt}({res}est3{txt} stored)

{com}. 
. 
. #delimit ;
{txt}delimiter now ;
{com}. esttab *, keep(same_room onepostdoc bothpostdoc one_female both_female same_inst both_longwood one_imager both_imager ///
> same_clinicalarea previouscoauthor _cons)
> varwidth(25) nonumber noobs nogaps nodep label b(%5.4f) se(%5.4f) star(+ 0.10 * 0.05 ** 0.01) 
> compress scalars("r2 R2"  "N Nb. of Obs.") sfmt(%10.3fc %10.0fc)
> mlabels("(1)" "(2)" "(3)" "(4)" "(5)")  
> indicate("Night fixed effects =dum_1")
> eqlabels(none);
{res}
{txt}{hline 61}
{txt}                                (1)         (2)         (3)  
{txt}{hline 61}
{txt}Same Room                {res}    0.0012+     0.0012+     0.0014* {txt}
                         {res} {ralign 9:{txt:(}0.0007{txt:)}}   {ralign 9:{txt:(}0.0007{txt:)}}   {ralign 9:{txt:(}0.0007{txt:)}}  {txt}
{txt}One postdoc              {res}                           -0.0008  {txt}
                         {res}                         {ralign 9:{txt:(}0.0005{txt:)}}  {txt}
{txt}Both postdocs            {res}                           -0.0014* {txt}
                         {res}                         {ralign 9:{txt:(}0.0007{txt:)}}  {txt}
{txt}One is female            {res}                            0.0002  {txt}
                         {res}                         {ralign 9:{txt:(}0.0005{txt:)}}  {txt}
{txt}Both are female          {res}                            0.0010  {txt}
                         {res}                         {ralign 9:{txt:(}0.0015{txt:)}}  {txt}
{txt}Same Hospital            {res}                            0.0042**{txt}
                         {res}                         {ralign 9:{txt:(}0.0013{txt:)}}  {txt}
{txt}Both Longwood Campus     {res}                           -0.0001  {txt}
                         {res}                         {ralign 9:{txt:(}0.0007{txt:)}}  {txt}
{txt}One Imager-One Clinician {res}                            0.0008+ {txt}
                         {res}                         {ralign 9:{txt:(}0.0005{txt:)}}  {txt}
{txt}Both imagers             {res}                            0.0025* {txt}
                         {res}                         {ralign 9:{txt:(}0.0010{txt:)}}  {txt}
{txt}Same Clinical Area (SOI) {res}                            0.0042**{txt}
                         {res}                         {ralign 9:{txt:(}0.0014{txt:)}}  {txt}
{txt}Previous Coauthor        {res}                            0.1176* {txt}
                         {res}                         {ralign 9:{txt:(}0.0461{txt:)}}  {txt}
{txt}Constant                 {res}    0.0016**    0.0012**   -0.0010  {txt}
                         {res} {ralign 9:{txt:(}0.0003{txt:)}}   {ralign 9:{txt:(}0.0004{txt:)}}   {ralign 9:{txt:(}0.0007{txt:)}}  {txt}
{txt}Night fixed effects      {res}        No         Yes         Yes  {txt}
{txt}{hline 61}
{txt}R2                       {res}                                    {txt}
{txt}Nb. of Obs.              {res}    53,328      53,328      53,328  {txt}
{txt}{hline 61}
{txt}Standard errors in parentheses
{txt}+ p<0.10, * p<0.05, ** p<0.01

{com}. esttab * using dyad_regs_main.rtf, keep(same_room onepostdoc bothpostdoc one_female both_female same_inst both_longwood one_imager both_imager ///
> same_clinicalarea previouscoauthor  _cons)
> varwidth(25) nonumber noobs nogaps nodep label b(%5.4f) se(%5.4f) star(+ 0.10 * 0.05 ** 0.01) 
> compress scalars("r2 R2"  "N Nb. of Obs.") sfmt(%10.3fc %10.0fc)
> mlabels("(1)" "(2)" "(3)" "(4)" "(5)")  
> indicate("Night fixed effects =dum_1") 
> eqlabels(none) replace;
{res}{txt}(output written to {browse  `"dyad_regs_main.rtf"'})

{com}. #delimit cr
{txt}delimiter now cr
{com}. 
. 
. /********** Table A2. Main effect of Treatment on Collaboration � Estimated with Probit **********/
. 
. 
. probit any_coapplicant same_room if same_night==1 , r 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-368.37909}  
Iteration 2:{space 3}log pseudolikelihood = {res:-368.34331}  
Iteration 3:{space 3}log pseudolikelihood = {res: -368.3433}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}1{txt}){col 67}= {res}      3.82
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0505
{txt}Log pseudolikelihood = {res} -368.3433{txt}{col 51}Pseudo R2{col 67}= {res}    0.0049

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}any_coapplicant{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}same_room {c |}{col 17}{res}{space 2} .1809728{col 29}{space 2} .0925388{col 40}{space 1}    1.96{col 49}{space 3}0.051{col 57}{space 4}   -.0004{col 70}{space 3} .3623456
{txt}{space 10}_cons {c |}{col 17}{res}{space 2}-2.947255{col 29}{space 2} .0546171{col 40}{space 1}  -53.96{col 49}{space 3}0.000{col 57}{space 4}-3.054302{col 70}{space 3}-2.840207
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}same_room {c |}{col 14}{res}{space 2} .0010979{col 26}{space 2} .0005777{col 37}{space 1}    1.90{col 46}{space 3}0.057{col 54}{space 4}-.0000344{col 67}{space 3} .0022302
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save p_dyad0.ster, replace
{res}{txt}file p_dyad0.ster saved

{com}. 
. ** Main table column 2 **
. 
. probit any_coapplicant same_room dum_1 dum_2 if same_night==1 , r

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-367.15309}  
Iteration 2:{space 3}log pseudolikelihood = {res:-367.08273}  
Iteration 3:{space 3}log pseudolikelihood = {res:-367.08269}  
Iteration 4:{space 3}log pseudolikelihood = {res:-367.08269}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}3{txt}){col 67}= {res}      6.45
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0915
{txt}Log pseudolikelihood = {res}-367.08269{txt}{col 51}Pseudo R2{col 67}= {res}    0.0083

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}any_coapplicant{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}same_room {c |}{col 17}{res}{space 2} .1813229{col 29}{space 2} .0924107{col 40}{space 1}    1.96{col 49}{space 3}0.050{col 57}{space 4} .0002013{col 70}{space 3} .3624445
{txt}{space 10}dum_1 {c |}{col 17}{res}{space 2} .0574775{col 29}{space 2} .1150411{col 40}{space 1}    0.50{col 49}{space 3}0.617{col 57}{space 4}-.1679989{col 70}{space 3}  .282954
{txt}{space 10}dum_2 {c |}{col 17}{res}{space 2} .1632529{col 29}{space 2} .1051003{col 40}{space 1}    1.55{col 49}{space 3}0.120{col 57}{space 4}  -.04274{col 70}{space 3} .3692457
{txt}{space 10}_cons {c |}{col 17}{res}{space 2}-3.025068{col 29}{space 2} .0832737{col 40}{space 1}  -36.33{col 49}{space 3}0.000{col 57}{space 4}-3.188281{col 70}{space 3}-2.861854
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}same_room {c |}{col 14}{res}{space 2} .0010973{col 26}{space 2} .0005756{col 37}{space 1}    1.91{col 46}{space 3}0.057{col 54}{space 4}-.0000308{col 67}{space 3} .0022255
{txt}{space 7}dum_1 {c |}{col 14}{res}{space 2} .0003478{col 26}{space 2} .0006978{col 37}{space 1}    0.50{col 46}{space 3}0.618{col 54}{space 4}-.0010199{col 67}{space 3} .0017156
{txt}{space 7}dum_2 {c |}{col 14}{res}{space 2}  .000988{col 26}{space 2}  .000648{col 37}{space 1}    1.52{col 46}{space 3}0.127{col 54}{space 4} -.000282{col 67}{space 3} .0022579
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save p_dyad1.ster, replace
{res}{txt}file p_dyad1.ster saved

{com}. 
. ** Main table column 3 **
. 
. xi: probit any_coapplicant same_room onepostdoc bothpostdoc one_female both_female same_inst both_longwood one_imager both_imager ///
> same_clinicalarea previouscoauthor dum_1 dum_2 if same_night==1  , r

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-336.70404}  
Iteration 2:{space 3}log pseudolikelihood = {res:-312.35941}  
Iteration 3:{space 3}log pseudolikelihood = {res:-312.08519}  
Iteration 4:{space 3}log pseudolikelihood = {res:-312.08451}  
Iteration 5:{space 3}log pseudolikelihood = {res:-312.08451}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}13{txt}){col 67}= {res}    122.74
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-312.08451{txt}{col 51}Pseudo R2{col 67}= {res}    0.1569

{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}  any_coapplicant{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}same_room {c |}{col 19}{res}{space 2} .2183987{col 31}{space 2} .1004084{col 42}{space 1}    2.18{col 51}{space 3}0.030{col 59}{space 4} .0216017{col 72}{space 3} .4151956
{txt}{space 7}onepostdoc {c |}{col 19}{res}{space 2}-.1470868{col 31}{space 2} .1071205{col 42}{space 1}   -1.37{col 51}{space 3}0.170{col 59}{space 4}-.3570391{col 72}{space 3} .0628655
{txt}{space 6}bothpostdoc {c |}{col 19}{res}{space 2}-.3506887{col 31}{space 2}   .31966{col 42}{space 1}   -1.10{col 51}{space 3}0.273{col 59}{space 4}-.9772109{col 72}{space 3} .2758335
{txt}{space 7}one_female {c |}{col 19}{res}{space 2} .0416801{col 31}{space 2} .1047547{col 42}{space 1}    0.40{col 51}{space 3}0.691{col 59}{space 4}-.1636352{col 72}{space 3} .2469955
{txt}{space 6}both_female {c |}{col 19}{res}{space 2} .1184915{col 31}{space 2} .1692571{col 42}{space 1}    0.70{col 51}{space 3}0.484{col 59}{space 4}-.2132464{col 72}{space 3} .4502294
{txt}{space 8}same_inst {c |}{col 19}{res}{space 2} .5666001{col 31}{space 2} .0990961{col 42}{space 1}    5.72{col 51}{space 3}0.000{col 59}{space 4} .3723754{col 72}{space 3} .7608248
{txt}{space 4}both_longwood {c |}{col 19}{res}{space 2} .0209856{col 31}{space 2} .1167442{col 42}{space 1}    0.18{col 51}{space 3}0.857{col 59}{space 4}-.2078287{col 72}{space 3}    .2498
{txt}{space 7}one_imager {c |}{col 19}{res}{space 2}  .217864{col 31}{space 2} .1326749{col 42}{space 1}    1.64{col 51}{space 3}0.101{col 59}{space 4}-.0421741{col 72}{space 3}  .477902
{txt}{space 6}both_imager {c |}{col 19}{res}{space 2} .4207931{col 31}{space 2} .1484329{col 42}{space 1}    2.83{col 51}{space 3}0.005{col 59}{space 4}   .12987{col 72}{space 3} .7117162
{txt}same_clinicalarea {c |}{col 19}{res}{space 2} .4874114{col 31}{space 2} .1034446{col 42}{space 1}    4.71{col 51}{space 3}0.000{col 59}{space 4} .2846637{col 72}{space 3} .6901591
{txt}{space 1}previouscoauthor {c |}{col 19}{res}{space 2} 1.481965{col 31}{space 2} .2465062{col 42}{space 1}    6.01{col 51}{space 3}0.000{col 59}{space 4} .9988216{col 72}{space 3} 1.965108
{txt}{space 12}dum_1 {c |}{col 19}{res}{space 2} .0388492{col 31}{space 2} .1283751{col 42}{space 1}    0.30{col 51}{space 3}0.762{col 59}{space 4}-.2127614{col 72}{space 3} .2904598
{txt}{space 12}dum_2 {c |}{col 19}{res}{space 2} .1860336{col 31}{space 2} .1185545{col 42}{space 1}    1.57{col 51}{space 3}0.117{col 59}{space 4}-.0463289{col 72}{space 3} .4183961
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}-3.585672{col 31}{space 2} .1785462{col 42}{space 1}  -20.08{col 51}{space 3}0.000{col 59}{space 4}-3.935616{col 72}{space 3}-3.235728
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room onepostdoc bothpostdoc one_female both_female same_inst both_longwood one_imager both_imager same_clinicalarea previouscoauthor dum_1 dum_2}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}same_room {c |}{col 19}{res}{space 2} .0011645{col 31}{space 2} .0005492{col 42}{space 1}    2.12{col 51}{space 3}0.034{col 59}{space 4} .0000881{col 72}{space 3} .0022409
{txt}{space 7}onepostdoc {c |}{col 19}{res}{space 2}-.0007843{col 31}{space 2} .0005797{col 42}{space 1}   -1.35{col 51}{space 3}0.176{col 59}{space 4}-.0019205{col 72}{space 3}  .000352
{txt}{space 6}bothpostdoc {c |}{col 19}{res}{space 2}-.0018699{col 31}{space 2} .0017081{col 42}{space 1}   -1.09{col 51}{space 3}0.274{col 59}{space 4}-.0052178{col 72}{space 3}  .001478
{txt}{space 7}one_female {c |}{col 19}{res}{space 2} .0002222{col 31}{space 2} .0005595{col 42}{space 1}    0.40{col 51}{space 3}0.691{col 59}{space 4}-.0008743{col 72}{space 3} .0013188
{txt}{space 6}both_female {c |}{col 19}{res}{space 2} .0006318{col 31}{space 2} .0009015{col 42}{space 1}    0.70{col 51}{space 3}0.483{col 59}{space 4} -.001135{col 72}{space 3} .0023986
{txt}{space 8}same_inst {c |}{col 19}{res}{space 2} .0030211{col 31}{space 2} .0006445{col 42}{space 1}    4.69{col 51}{space 3}0.000{col 59}{space 4}  .001758{col 72}{space 3} .0042843
{txt}{space 4}both_longwood {c |}{col 19}{res}{space 2} .0001119{col 31}{space 2} .0006226{col 42}{space 1}    0.18{col 51}{space 3}0.857{col 59}{space 4}-.0011084{col 72}{space 3} .0013322
{txt}{space 7}one_imager {c |}{col 19}{res}{space 2} .0011617{col 31}{space 2} .0007201{col 42}{space 1}    1.61{col 51}{space 3}0.107{col 59}{space 4}-.0002496{col 72}{space 3} .0025729
{txt}{space 6}both_imager {c |}{col 19}{res}{space 2} .0022437{col 31}{space 2} .0008293{col 42}{space 1}    2.71{col 51}{space 3}0.007{col 59}{space 4} .0006184{col 72}{space 3}  .003869
{txt}same_clinicalarea {c |}{col 19}{res}{space 2} .0025989{col 31}{space 2} .0006408{col 42}{space 1}    4.06{col 51}{space 3}0.000{col 59}{space 4} .0013429{col 72}{space 3} .0038549
{txt}{space 1}previouscoauthor {c |}{col 19}{res}{space 2} .0079019{col 31}{space 2} .0015954{col 42}{space 1}    4.95{col 51}{space 3}0.000{col 59}{space 4} .0047751{col 72}{space 3} .0110288
{txt}{space 12}dum_1 {c |}{col 19}{res}{space 2} .0002071{col 31}{space 2} .0006857{col 42}{space 1}    0.30{col 51}{space 3}0.763{col 59}{space 4}-.0011368{col 72}{space 3} .0015511
{txt}{space 12}dum_2 {c |}{col 19}{res}{space 2} .0009919{col 31}{space 2} .0006401{col 42}{space 1}    1.55{col 51}{space 3}0.121{col 59}{space 4}-.0002626{col 72}{space 3} .0022464
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save p_dyad2.ster, replace
{res}{txt}file p_dyad2.ster saved

{com}. 
. 
. estimates drop _all
{txt}
{com}. forvalues n=0(1)2 {c -(} 
{txt}  2{com}. estimates use p_dyad`n'.ster
{txt}  3{com}. eststo
{txt}  4{com}. {c )-}
{res}{txt}({res}est1{txt} stored)
{res}{txt}({res}est2{txt} stored)
{res}{txt}({res}est3{txt} stored)

{com}. 
. #delimit ;
{txt}delimiter now ;
{com}. esttab *, keep(same_room onepostdoc bothpostdoc one_female both_female same_inst both_longwood one_imager both_imager ///
> same_clinicalarea previouscoauthor  )
> varwidth(25) nonumber noobs nogaps nodep label b(%5.4f) se(%5.4f) star(+ 0.10 * 0.05 ** 0.01) 
> compress scalars("r2 R2"  "N Nb. of Obs.") sfmt(%10.3fc %10.0fc)
> mlabels("(1)" "(2)" "(3)" "(4)" "(5)")  
> indicate("Night fixed effects =dum_1") 
> eqlabels(none) replace;
{res}
{txt}{hline 61}
{txt}                                (1)         (2)         (3)  
{txt}{hline 61}
{txt}Same Room                {res}    0.0011+     0.0011+     0.0012* {txt}
                         {res} {ralign 9:{txt:(}0.0006{txt:)}}   {ralign 9:{txt:(}0.0006{txt:)}}   {ralign 9:{txt:(}0.0005{txt:)}}  {txt}
{txt}One postdoc              {res}                           -0.0008  {txt}
                         {res}                         {ralign 9:{txt:(}0.0006{txt:)}}  {txt}
{txt}Both postdocs            {res}                           -0.0019  {txt}
                         {res}                         {ralign 9:{txt:(}0.0017{txt:)}}  {txt}
{txt}One is female            {res}                            0.0002  {txt}
                         {res}                         {ralign 9:{txt:(}0.0006{txt:)}}  {txt}
{txt}Both are female          {res}                            0.0006  {txt}
                         {res}                         {ralign 9:{txt:(}0.0009{txt:)}}  {txt}
{txt}Same Hospital            {res}                            0.0030**{txt}
                         {res}                         {ralign 9:{txt:(}0.0006{txt:)}}  {txt}
{txt}Both Longwood Campus     {res}                            0.0001  {txt}
                         {res}                         {ralign 9:{txt:(}0.0006{txt:)}}  {txt}
{txt}One Imager-One Clinician {res}                            0.0012  {txt}
                         {res}                         {ralign 9:{txt:(}0.0007{txt:)}}  {txt}
{txt}Both imagers             {res}                            0.0022**{txt}
                         {res}                         {ralign 9:{txt:(}0.0008{txt:)}}  {txt}
{txt}Same Clinical Area (SOI) {res}                            0.0026**{txt}
                         {res}                         {ralign 9:{txt:(}0.0006{txt:)}}  {txt}
{txt}Previous Coauthor        {res}                            0.0079**{txt}
                         {res}                         {ralign 9:{txt:(}0.0016{txt:)}}  {txt}
{txt}Night fixed effects      {res}        No         Yes         Yes  {txt}
{txt}{hline 61}
{txt}R2                       {res}                                    {txt}
{txt}Nb. of Obs.              {res}    26,664      26,664      26,664  {txt}
{txt}{hline 61}
{txt}Standard errors in parentheses
{txt}+ p<0.10, * p<0.05, ** p<0.01

{com}. esttab * using dyad_regs_main.rtf, keep(same_room onepostdoc bothpostdoc one_female both_female same_inst both_longwood one_imager both_imager ///
> same_clinicalarea previouscoauthor  )
> varwidth(25) nonumber noobs nogaps nodep label b(%5.4f) se(%5.4f) star(+ 0.10 * 0.05 ** 0.01) 
> compress scalars("r2 R2"  "N Nb. of Obs.") sfmt(%10.3fc %10.0fc)
> mlabels("(1)" "(2)" "(3)" "(4)" "(5)")  
> indicate("Night fixed effects =dum_1") 
> eqlabels(none) replace;
{res}{txt}(output written to {browse  `"dyad_regs_main.rtf"'})

{com}. #delimit cr
{txt}delimiter now cr
{com}. 
. 
. /************* Table 5. Treatment and Interactions with Measures of Distance **************************/
. 
. 
. eststo clear
{txt}
{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc ///
> if same_night==1 , id(x_participant_id y_participant_id) symmetric group(nightcombo) 


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0007595{col 27}{space 2} .0007451{col 41}{space 6} .0009314{col 57}{space 1}    0.82
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0001777{col 27}{space 2} .0004374{col 41}{space 6} .0006608{col 57}{space 1}    0.27
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0008576{col 27}{space 2} .0004673{col 41}{space 6} .0008165{col 57}{space 1}    1.05
{col 1}{text}  onepostdoc{col 14}{c |}{result}{space 2} -.001559{col 27}{space 2} .0003994{col 41}{space 6} .0005693{col 57}{space 1}   -2.74
{col 1}{text}sam~epostdoc{col 14}{c |}{result}{space 2} .0014386{col 27}{space 2} .0010716{col 41}{space 6} .0013465{col 57}{space 1}    1.07
{col 1}{text} bothpostdoc{col 14}{c |}{result}{space 2}-.0016009{col 27}{space 2} .0005876{col 41}{space 6} .0008476{col 57}{space 1}   -1.89
{col 1}{text}sam~hpostdoc{col 14}{c |}{result}{space 2}-.0014178{col 27}{space 2} .0008837{col 41}{space 6} .0011462{col 57}{space 1}   -1.24
{col 1}{text}       _cons{col 14}{c |}{result}{space 2} .0020054{col 27}{space 2} .0003991{col 41}{space 6} .0005939{col 57}{space 1}    3.38
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactparts1.ster, replace
{res}{txt}file dyad_interactparts1.ster saved

{com}. eststo
{txt}({res}est1{txt} stored)

{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 one_female same_room_X_one_female both_female same_room_X_both_female ///
> if same_night==1 , id(x_participant_id y_participant_id) symmetric group(nightcombo) 


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0000293{col 27}{space 2} .0006301{col 41}{space 6} .0009518{col 57}{space 1}    0.03
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0002775{col 27}{space 2} .0004326{col 41}{space 6} .0006622{col 57}{space 1}    0.42
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0010177{col 27}{space 2} .0004649{col 41}{space 6} .0008404{col 57}{space 1}    1.21
{col 1}{text}  one_female{col 14}{c |}{result}{space 2}-.0007863{col 27}{space 2} .0004128{col 41}{space 6} .0006305{col 57}{space 1}   -1.25
{col 1}{text}sam~e_female{col 14}{c |}{result}{space 2} .0021126{col 27}{space 2} .0010419{col 41}{space 6} .0015505{col 57}{space 1}    1.36
{col 1}{text} both_female{col 14}{c |}{result}{space 2}-.0007383{col 27}{space 2} .0006897{col 41}{space 6}  .001303{col 57}{space 1}   -0.57
{col 1}{text}sam~h_female{col 14}{c |}{result}{space 2} .0040016{col 27}{space 2} .0023024{col 41}{space 6} .0025012{col 57}{space 1}    1.60
{col 1}{text}       _cons{col 14}{c |}{result}{space 2} .0015754{col 27}{space 2} .0003543{col 41}{space 6} .0005794{col 57}{space 1}    2.72
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactparts2.ster, replace
{res}{txt}file dyad_interactparts2.ster saved

{com}. eststo
{txt}({res}est2{txt} stored)

{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 same_inst same_room_X_same_inst ///
> if same_night==1 ,  id(x_participant_id y_participant_id) symmetric group(nightcombo) 


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0007929{col 27}{space 2} .0004004{col 41}{space 6} .0005054{col 57}{space 1}    1.57
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0003172{col 27}{space 2} .0004321{col 41}{space 6} .0006591{col 57}{space 1}    0.48
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0012218{col 27}{space 2} .0004723{col 41}{space 6} .0008218{col 57}{space 1}    1.49
{col 1}{text}   same_inst{col 14}{c |}{result}{space 2} .0044112{col 27}{space 2}  .000797{col 41}{space 6} .0013649{col 57}{space 1}    3.23
{col 1}{text}same_room_~t{col 14}{c |}{result}{space 2} .0024385{col 27}{space 2} .0019624{col 41}{space 6} .0025718{col 57}{space 1}    0.95
{col 1}{text}       _cons{col 14}{c |}{result}{space 2} .0001879{col 27}{space 2} .0002683{col 41}{space 6}  .000412{col 57}{space 1}    0.46
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactparts3.ster, replace
{res}{txt}file dyad_interactparts3.ster saved

{com}. eststo
{txt}({res}est3{txt} stored)

{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 both_longwood same_room_X_both_longwood ///
> if same_night==1 ,  id(x_participant_id y_participant_id) symmetric group(nightcombo)


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0017621{col 27}{space 2} .0006158{col 41}{space 6} .0008435{col 57}{space 1}    2.09
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0002817{col 27}{space 2} .0004366{col 41}{space 6}  .000667{col 57}{space 1}    0.42
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2}  .001001{col 27}{space 2} .0004662{col 41}{space 6}  .000835{col 57}{space 1}    1.20
{col 1}{text}both_longw~d{col 14}{c |}{result}{space 2} .0004688{col 27}{space 2} .0004923{col 41}{space 6} .0007306{col 57}{space 1}    0.64
{col 1}{text}same_room_~d{col 14}{c |}{result}{space 2}-.0020065{col 27}{space 2} .0010186{col 41}{space 6} .0013935{col 57}{space 1}   -1.44
{col 1}{text}       _cons{col 14}{c |}{result}{space 2} .0010692{col 27}{space 2} .0003257{col 41}{space 6} .0005024{col 57}{space 1}    2.13
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactparts4.ster, replace
{res}{txt}file dyad_interactparts4.ster saved

{com}. eststo
{txt}({res}est4{txt} stored)

{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 one_imager same_room_X_one_imager both_imager same_room_X_both_imager ///
> if same_night==1 ,  id(x_participant_id y_participant_id) symmetric group(nightcombo) 


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0012028{col 27}{space 2} .0006676{col 41}{space 6} .0009292{col 57}{space 1}    1.29
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0001298{col 27}{space 2}   .00043{col 41}{space 6} .0006346{col 57}{space 1}    0.20
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0009724{col 27}{space 2} .0004655{col 41}{space 6} .0008205{col 57}{space 1}    1.19
{col 1}{text}  one_imager{col 14}{c |}{result}{space 2} .0009424{col 27}{space 2} .0003505{col 41}{space 6} .0004505{col 57}{space 1}    2.09
{col 1}{text}sam~e_imager{col 14}{c |}{result}{space 2}-.0000102{col 27}{space 2} .0009671{col 41}{space 6} .0013643{col 57}{space 1}   -0.01
{col 1}{text} both_imager{col 14}{c |}{result}{space 2} .0031257{col 27}{space 2} .0007483{col 41}{space 6} .0010601{col 57}{space 1}    2.95
{col 1}{text}sam~h_imager{col 14}{c |}{result}{space 2} .0001899{col 27}{space 2} .0017737{col 41}{space 6} .0025715{col 57}{space 1}    0.07
{col 1}{text}       _cons{col 14}{c |}{result}{space 2} .0002347{col 27}{space 2} .0002933{col 41}{space 6} .0004382{col 57}{space 1}    0.54
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactparts5.ster, replace
{res}{txt}file dyad_interactparts5.ster saved

{com}. eststo
{txt}({res}est5{txt} stored)

{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 same_clinicalarea same_room_X_same_clinicalarea ///
> if same_night==1 ,  id(x_participant_id y_participant_id) symmetric group(nightcombo) 


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0000535{col 27}{space 2} .0003908{col 41}{space 6} .0004476{col 57}{space 1}    0.12
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0003916{col 27}{space 2} .0004308{col 41}{space 6} .0006437{col 57}{space 1}    0.61
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0010992{col 27}{space 2} .0004657{col 41}{space 6}  .000822{col 57}{space 1}    1.34
{col 1}{text}same_clini~a{col 14}{c |}{result}{space 2} .0025145{col 27}{space 2} .0009126{col 41}{space 6} .0011365{col 57}{space 1}    2.21
{col 1}{text}same_room_~a{col 14}{c |}{result}{space 2} .0094729{col 27}{space 2} .0029848{col 41}{space 6} .0045067{col 57}{space 1}    2.10
{col 1}{text}       _cons{col 14}{c |}{result}{space 2} .0008267{col 27}{space 2} .0002578{col 41}{space 6}  .000384{col 57}{space 1}    2.15
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactparts6.ster, replace
{res}{txt}file dyad_interactparts6.ster saved

{com}. eststo
{txt}({res}est6{txt} stored)

{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 previouscoauthor same_room_X_previouscoau ///
> if same_night==1 ,   id(x_participant_id y_participant_id) symmetric group(nightcombo)


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2} .0011332{col 27}{space 2} .0004735{col 41}{space 6} .0006257{col 57}{space 1}    1.81
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2}  .000125{col 27}{space 2} .0004329{col 41}{space 6} .0006491{col 57}{space 1}    0.19
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0009466{col 27}{space 2}  .000456{col 41}{space 6} .0007979{col 57}{space 1}    1.19
{col 1}{text}previousco~r{col 14}{c |}{result}{space 2} .0916996{col 27}{space 2} .0313177{col 41}{space 6} .0449631{col 57}{space 1}    2.04
{col 1}{text}same_room_~u{col 14}{c |}{result}{space 2} .2389077{col 27}{space 2}   .13957{col 41}{space 6} .1981355{col 57}{space 1}    1.21
{col 1}{text}       _cons{col 14}{c |}{result}{space 2}  .001057{col 27}{space 2} .0002756{col 41}{space 6} .0004162{col 57}{space 1}    2.54
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactparts7.ster, replace
{res}{txt}file dyad_interactparts7.ster saved

{com}. eststo
{txt}({res}est7{txt} stored)

{com}. 
. ngreg any_coapplicant same_room dum_1 dum_2 onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc ///
> one_female same_room_X_one_female both_female same_room_X_both_female ///
> same_inst same_room_X_same_inst both_longwood same_room_X_both_longwood ///
> one_imager same_room_X_one_imager both_imager same_room_X_both_imager same_clinicalarea same_room_X_same_clinicalarea ///
> previouscoauthor same_room_X_previouscoau ///
> if same_night==1 , id(x_participant_id y_participant_id) symmetric group(nightcombo)


{txt}...

Grouped Dyadic linear regression{col 40}Number of obs{col 57}= {res}  53328
{txt}{col 40}Number of groups{col 57}= {res}      3

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 14}{hline 16}{hline 9}
{col 14}{text}{c |}{col 27}    Robust
{col 1}{text}any_coapplicant{col 14}{c |}      Coef.{col 27}   Std. Err.{col 41}  Gr.Dyadic s.e.{col 57}      t
{col 1}{text}{hline 13}{c +}{hline 12}{hline 14}{hline 16}{hline 9}
{col 1}{text}   same_room{col 14}{c |}{result}{space 2}-.0018723{col 27}{space 2}  .001074{col 41}{space 6} .0014148{col 57}{space 1}   -1.32
{col 1}{text}       dum_1{col 14}{c |}{result}{space 2} .0000804{col 27}{space 2} .0004361{col 41}{space 6} .0006226{col 57}{space 1}    0.13
{col 1}{text}       dum_2{col 14}{c |}{result}{space 2} .0010973{col 27}{space 2} .0004638{col 41}{space 6} .0007575{col 57}{space 1}    1.45
{col 1}{text}  onepostdoc{col 14}{c |}{result}{space 2} -.001235{col 27}{space 2}  .000378{col 41}{space 6} .0005058{col 57}{space 1}   -2.44
{col 1}{text}sam~epostdoc{col 14}{c |}{result}{space 2} .0018614{col 27}{space 2} .0010315{col 41}{space 6} .0012669{col 57}{space 1}    1.47
{col 1}{text} bothpostdoc{col 14}{c |}{result}{space 2}-.0012013{col 27}{space 2} .0005902{col 41}{space 6} .0008346{col 57}{space 1}   -1.44
{col 1}{text}sam~hpostdoc{col 14}{c |}{result}{space 2}-.0010689{col 27}{space 2} .0008488{col 41}{space 6} .0011148{col 57}{space 1}   -0.96
{col 1}{text}  one_female{col 14}{c |}{result}{space 2} -.000395{col 27}{space 2} .0004033{col 41}{space 6} .0006168{col 57}{space 1}   -0.64
{col 1}{text}sam~e_female{col 14}{c |}{result}{space 2} .0023664{col 27}{space 2} .0010691{col 41}{space 6} .0015056{col 57}{space 1}    1.57
{col 1}{text} both_female{col 14}{c |}{result}{space 2}-.0000145{col 27}{space 2} .0007138{col 41}{space 6} .0013086{col 57}{space 1}   -0.01
{col 1}{text}sam~h_female{col 14}{c |}{result}{space 2} .0034923{col 27}{space 2} .0021176{col 41}{space 6} .0025174{col 57}{space 1}    1.39
{col 1}{text}   same_inst{col 14}{c |}{result}{space 2} .0036778{col 27}{space 2} .0007548{col 41}{space 6} .0012981{col 57}{space 1}    2.83
{col 1}{text}same_room_~t{col 14}{c |}{result}{space 2} .0022594{col 27}{space 2} .0019141{col 41}{space 6} .0025267{col 57}{space 1}    0.89
{col 1}{text}both_longw~d{col 14}{c |}{result}{space 2}  .000365{col 27}{space 2} .0005111{col 41}{space 6} .0007405{col 57}{space 1}    0.49
{col 1}{text}same_room_~d{col 14}{c |}{result}{space 2}-.0017743{col 27}{space 2} .0010735{col 41}{space 6} .0014602{col 57}{space 1}   -1.22
{col 1}{text}  one_imager{col 14}{c |}{result}{space 2} .0008108{col 27}{space 2}  .000347{col 41}{space 6} .0004366{col 57}{space 1}    1.86
{col 1}{text}sam~e_imager{col 14}{c |}{result}{space 2}-7.39e-06{col 27}{space 2} .0009256{col 41}{space 6} .0012493{col 57}{space 1}   -0.01
{col 1}{text} both_imager{col 14}{c |}{result}{space 2}  .002519{col 27}{space 2} .0007713{col 41}{space 6} .0010762{col 57}{space 1}    2.34
{col 1}{text}sam~h_imager{col 14}{c |}{result}{space 2}-.0001588{col 27}{space 2} .0016774{col 41}{space 6} .0024501{col 57}{space 1}   -0.06
{col 1}{text}same_clini~a{col 14}{c |}{result}{space 2} .0017599{col 27}{space 2}  .000904{col 41}{space 6} .0011581{col 57}{space 1}    1.52
{col 1}{text}same_room_~a{col 14}{c |}{result}{space 2}  .009398{col 27}{space 2} .0028857{col 41}{space 6}  .004164{col 57}{space 1}    2.26
{col 1}{text}previousco~r{col 14}{c |}{result}{space 2} .0888813{col 27}{space 2} .0312676{col 41}{space 6}  .044918{col 57}{space 1}    1.98
{col 1}{text}same_room_~u{col 14}{c |}{result}{space 2} .2363331{col 27}{space 2}  .139077{col 41}{space 6} .1971885{col 57}{space 1}    1.20
{col 1}{text}       _cons{col 14}{c |}{result}{space 2}-.0001368{col 27}{space 2} .0004574{col 41}{space 6} .0006025{col 57}{space 1}   -0.23
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 14}{hline 16}{hline 9}

{com}. estimates save dyad_interactpartsall.ster, replace
{res}{txt}file dyad_interactpartsall.ster saved

{com}. eststo
{txt}({res}est8{txt} stored)

{com}. 
. 
. #delimit ;
{txt}delimiter now ;
{com}. esttab * /*using dyad_regs_interactparts.rtf*/,  keep(same_room onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc ///
> one_female same_room_X_one_female both_female same_room_X_both_female ///
> same_inst same_room_X_same_inst both_longwood same_room_X_both_longwood ////
> one_imager same_room_X_one_imager both_imager same_room_X_both_imager same_clinicalarea same_room_X_same_clinicalarea ///
> previouscoauthor same_room_X_previouscoau  /* _cons*/)
> varwidth(25) modelwidth(5) nonumber noobs nogaps nodep label b(%5.4f) se(%5.4f) star(+ 0.10 * 0.05 ** 0.01) 
> compress scalars("r2 R2"  "N Nb. of Obs.") sfmt(%10.3fc %10.0fc) 
> mlabels("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)")  
> indicate("Night fixed effects =dum_1") 
> eqlabels(none) replace;
{res}
{txt}{hline 89}
{txt}                            (1)     (2)     (3)     (4)     (5)     (6)     (7)     (8)  
{txt}{hline 89}
{txt}Same Room                {res} 0.0008   0.0000   0.0008   0.0018*  0.0012   0.0001   0.0011+  -0.0019  {txt}
                         {res} {ralign 5:{txt:(}0.0009{txt:)}}   {ralign 5:{txt:(}0.0010{txt:)}}   {ralign 5:{txt:(}0.0005{txt:)}}   {ralign 5:{txt:(}0.0008{txt:)}}   {ralign 5:{txt:(}0.0009{txt:)}}   {ralign 5:{txt:(}0.0004{txt:)}}   {ralign 5:{txt:(}0.0006{txt:)}}   {ralign 5:{txt:(}0.0014{txt:)}}  {txt}
{txt}One postdoc              {res} -0.0016**                                                 -0.0012* {txt}
                         {res} {ralign 5:{txt:(}0.0006{txt:)}}                                                   {ralign 5:{txt:(}0.0005{txt:)}}  {txt}
{txt}Same Rm X 1 postdoc      {res} 0.0014                                                   0.0019  {txt}
                         {res} {ralign 5:{txt:(}0.0013{txt:)}}                                                   {ralign 5:{txt:(}0.0013{txt:)}}  {txt}
{txt}Both postdocs            {res} -0.0016+                                                  -0.0012  {txt}
                         {res} {ralign 5:{txt:(}0.0008{txt:)}}                                                   {ralign 5:{txt:(}0.0008{txt:)}}  {txt}
{txt}Same Rm X Both postdocs  {res} -0.0014                                                   -0.0011  {txt}
                         {res} {ralign 5:{txt:(}0.0011{txt:)}}                                                   {ralign 5:{txt:(}0.0011{txt:)}}  {txt}
{txt}One is female            {res}         -0.0008                                           -0.0004  {txt}
                         {res}         {ralign 5:{txt:(}0.0006{txt:)}}                                           {ralign 5:{txt:(}0.0006{txt:)}}  {txt}
{txt}Same Rm X One female     {res}         0.0021                                           0.0024  {txt}
                         {res}         {ralign 5:{txt:(}0.0016{txt:)}}                                           {ralign 5:{txt:(}0.0015{txt:)}}  {txt}
{txt}Both are female          {res}         -0.0007                                           -0.0000  {txt}
                         {res}         {ralign 5:{txt:(}0.0013{txt:)}}                                           {ralign 5:{txt:(}0.0013{txt:)}}  {txt}
{txt}Same Rm X Both female    {res}         0.0040                                           0.0035  {txt}
                         {res}         {ralign 5:{txt:(}0.0025{txt:)}}                                           {ralign 5:{txt:(}0.0025{txt:)}}  {txt}
{txt}Same Hospital            {res}                 0.0044**                                 0.0037**{txt}
                         {res}                 {ralign 5:{txt:(}0.0014{txt:)}}                                   {ralign 5:{txt:(}0.0013{txt:)}}  {txt}
{txt}same_room_X_same_inst    {res}                 0.0024                                   0.0023  {txt}
                         {res}                 {ralign 5:{txt:(}0.0026{txt:)}}                                   {ralign 5:{txt:(}0.0025{txt:)}}  {txt}
{txt}Both Longwood Campus     {res}                         0.0005                           0.0004  {txt}
                         {res}                         {ralign 5:{txt:(}0.0007{txt:)}}                           {ralign 5:{txt:(}0.0007{txt:)}}  {txt}
{txt}Same Rm X Both Longwood  {res}                         -0.0020                           -0.0018  {txt}
                         {res}                         {ralign 5:{txt:(}0.0014{txt:)}}                           {ralign 5:{txt:(}0.0015{txt:)}}  {txt}
{txt}One Imager-One Clinician {res}                                 0.0009*                  0.0008+ {txt}
                         {res}                                 {ralign 5:{txt:(}0.0005{txt:)}}                   {ralign 5:{txt:(}0.0004{txt:)}}  {txt}
{txt}Same Rm X One imager     {res}                                 -0.0000                   -0.0000  {txt}
                         {res}                                 {ralign 5:{txt:(}0.0014{txt:)}}                   {ralign 5:{txt:(}0.0012{txt:)}}  {txt}
{txt}Both imagers             {res}                                 0.0031**                 0.0025* {txt}
                         {res}                                 {ralign 5:{txt:(}0.0011{txt:)}}                   {ralign 5:{txt:(}0.0011{txt:)}}  {txt}
{txt}Same Rm X Both imager    {res}                                 0.0002                   -0.0002  {txt}
                         {res}                                 {ralign 5:{txt:(}0.0026{txt:)}}                   {ralign 5:{txt:(}0.0025{txt:)}}  {txt}
{txt}Same Clinical Area (SOI) {res}                                         0.0025*          0.0018  {txt}
                         {res}                                         {ralign 5:{txt:(}0.0011{txt:)}}           {ralign 5:{txt:(}0.0012{txt:)}}  {txt}
{txt}Same Rm X Same Clin Area {res}                                         0.0095*          0.0094* {txt}
                         {res}                                         {ralign 5:{txt:(}0.0045{txt:)}}           {ralign 5:{txt:(}0.0042{txt:)}}  {txt}
{txt}Previous Coauthor        {res}                                                 0.0917*  0.0889* {txt}
                         {res}                                                 {ralign 5:{txt:(}0.0450{txt:)}}   {ralign 5:{txt:(}0.0449{txt:)}}  {txt}
{txt}Same Rm X Prev Coau      {res}                                                 0.2389   0.2363  {txt}
                         {res}                                                 {ralign 5:{txt:(}0.1981{txt:)}}   {ralign 5:{txt:(}0.1972{txt:)}}  {txt}
{txt}Night fixed effects      {res}   Yes     Yes     Yes     Yes     Yes     Yes     Yes     Yes  {txt}
{txt}{hline 89}
{txt}R2                       {res}                                                                {txt}
{txt}Nb. of Obs.              {res} 53,328   53,328   53,328   53,328   53,328   53,328   53,328   53,328  {txt}
{txt}{hline 89}
{txt}Standard errors in parentheses
{txt}+ p<0.10, * p<0.05, ** p<0.01

{com}. #delimit cr
{txt}delimiter now cr
{com}. 
. 
. 
. /*************  Table A3. Treatment and Interactions with Measures of Distance � Estimated with Probit **************************/
. 
. 
. 
. probit any_coapplicant same_room dum_1 dum_2 onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc ///
> if same_night==1 , r 

{txt}note: same_room_X_bothpostdoc != 0 predicts failure perfectly
      same_room_X_bothpostdoc dropped and 480 obs not used

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-369.24529}  
Iteration 1:{space 3}log pseudolikelihood = {res:-362.06242}  
Iteration 2:{space 3}log pseudolikelihood = {res:-361.61252}  
Iteration 3:{space 3}log pseudolikelihood = {res:-361.61175}  
Iteration 4:{space 3}log pseudolikelihood = {res:-361.61175}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26184
{txt}{col 51}Wald chi2({res}6{txt}){col 67}= {res}     13.96
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0300
{txt}Log pseudolikelihood = {res}-361.61175{txt}{col 51}Pseudo R2{col 67}= {res}    0.0207

{txt}{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}        any_coapplicant{col 25}{c |}      Coef.{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [95% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}same_room {c |}{col 25}{res}{space 2} .0898487{col 37}{space 2} .1179491{col 48}{space 1}    0.76{col 57}{space 3}0.446{col 65}{space 4}-.1413274{col 78}{space 3} .3210248
{txt}{space 18}dum_1 {c |}{col 25}{res}{space 2} .0457461{col 37}{space 2} .1167074{col 48}{space 1}    0.39{col 57}{space 3}0.695{col 65}{space 4}-.1829962{col 78}{space 3} .2744885
{txt}{space 18}dum_2 {c |}{col 25}{res}{space 2} .1407908{col 37}{space 2} .1066737{col 48}{space 1}    1.32{col 57}{space 3}0.187{col 65}{space 4}-.0682859{col 78}{space 3} .3498675
{txt}{space 13}onepostdoc {c |}{col 25}{res}{space 2}-.3379283{col 37}{space 2}  .134577{col 48}{space 1}   -2.51{col 57}{space 3}0.012{col 65}{space 4}-.6016943{col 78}{space 3}-.0741623
{txt}{space 1}same_room_X_onepostdoc {c |}{col 25}{res}{space 2} .3288701{col 37}{space 2} .2034976{col 48}{space 1}    1.62{col 57}{space 3}0.106{col 65}{space 4}-.0699779{col 78}{space 3}  .727718
{txt}{space 12}bothpostdoc {c |}{col 25}{res}{space 2}-.3727641{col 37}{space 2} .2953178{col 48}{space 1}   -1.26{col 57}{space 3}0.207{col 65}{space 4}-.9515763{col 78}{space 3} .2060481
{txt}same_room_X_bothpostdoc {c |}{col 25}{res}{space 2}        0{col 37}{txt}  (omitted)
{space 18}_cons {c |}{col 25}{res}{space 2}-2.894031{col 37}{space 2} .0951526{col 48}{space 1}  -30.41{col 57}{space 3}0.000{col 65}{space 4}-3.080526{col 78}{space 3}-2.707535
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26184
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc}{p_end}
{p2colreset}{...}

{res}{txt}{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37} Delta-method
{col 25}{c |}      dy/dx{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [95% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}same_room {c |}{col 25}{res}{space 2}  .000548{col 37}{space 2} .0007225{col 48}{space 1}    0.76{col 57}{space 3}0.448{col 65}{space 4}-.0008681{col 78}{space 3} .0019641
{txt}{space 18}dum_1 {c |}{col 25}{res}{space 2}  .000279{col 37}{space 2} .0007132{col 48}{space 1}    0.39{col 57}{space 3}0.696{col 65}{space 4}-.0011188{col 78}{space 3} .0016769
{txt}{space 18}dum_2 {c |}{col 25}{res}{space 2} .0008587{col 37}{space 2} .0006597{col 48}{space 1}    1.30{col 57}{space 3}0.193{col 65}{space 4}-.0004343{col 78}{space 3} .0021517
{txt}{space 13}onepostdoc {c |}{col 25}{res}{space 2} -.002061{col 37}{space 2} .0008594{col 48}{space 1}   -2.40{col 57}{space 3}0.016{col 65}{space 4}-.0037455{col 78}{space 3}-.0003765
{txt}{space 1}same_room_X_onepostdoc {c |}{col 25}{res}{space 2} .0020058{col 37}{space 2} .0012659{col 48}{space 1}    1.58{col 57}{space 3}0.113{col 65}{space 4}-.0004753{col 78}{space 3} .0044868
{txt}{space 12}bothpostdoc {c |}{col 25}{res}{space 2}-.0022735{col 37}{space 2} .0018244{col 48}{space 1}   -1.25{col 57}{space 3}0.213{col 65}{space 4}-.0058492{col 78}{space 3} .0013023
{txt}same_room_X_bothpostdoc {c |}{col 25}{res}{space 2}        0{col 37}{txt}  (omitted)
{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactparts1.ster, replace
{res}{txt}file pdyad_interactparts1.ster saved

{com}. 
. probit any_coapplicant same_room dum_1 dum_2 one_female same_room_X_one_female both_female same_room_X_both_female ///
> if same_night==1 , r 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-365.46233}  
Iteration 2:{space 3}log pseudolikelihood = {res:-365.03318}  
Iteration 3:{space 3}log pseudolikelihood = {res: -365.0322}  
Iteration 4:{space 3}log pseudolikelihood = {res: -365.0322}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}7{txt}){col 67}= {res}     10.91
{txt}{col 51}Prob > chi2{col 67}= {res}    0.1426
{txt}Log pseudolikelihood = {res} -365.0322{txt}{col 51}Pseudo R2{col 67}= {res}    0.0139

{txt}{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}        any_coapplicant{col 25}{c |}      Coef.{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [95% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}same_room {c |}{col 25}{res}{space 2} .0024007{col 37}{space 2} .1380287{col 48}{space 1}    0.02{col 57}{space 3}0.986{col 65}{space 4}-.2681306{col 78}{space 3} .2729321
{txt}{space 18}dum_1 {c |}{col 25}{res}{space 2} .0549094{col 37}{space 2} .1154279{col 48}{space 1}    0.48{col 57}{space 3}0.634{col 65}{space 4}-.1713251{col 78}{space 3} .2811439
{txt}{space 18}dum_2 {c |}{col 25}{res}{space 2} .1655366{col 37}{space 2} .1046422{col 48}{space 1}    1.58{col 57}{space 3}0.114{col 65}{space 4}-.0395584{col 78}{space 3} .3706316
{txt}{space 13}one_female {c |}{col 25}{res}{space 2}-.1527269{col 37}{space 2} .1183521{col 48}{space 1}   -1.29{col 57}{space 3}0.197{col 65}{space 4}-.3846928{col 78}{space 3}  .079239
{txt}{space 1}same_room_X_one_female {c |}{col 25}{res}{space 2} .3217125{col 37}{space 2} .2016184{col 48}{space 1}    1.60{col 57}{space 3}0.111{col 65}{space 4}-.0734523{col 78}{space 3} .7168772
{txt}{space 12}both_female {c |}{col 25}{res}{space 2}-.1520647{col 37}{space 2} .2239991{col 48}{space 1}   -0.68{col 57}{space 3}0.497{col 65}{space 4}-.5910949{col 78}{space 3} .2869654
{txt}same_room_X_both_female {c |}{col 25}{res}{space 2} .4790952{col 37}{space 2} .3208541{col 48}{space 1}    1.49{col 57}{space 3}0.135{col 65}{space 4}-.1497673{col 78}{space 3} 1.107958
{txt}{space 18}_cons {c |}{col 25}{res}{space 2}-2.957864{col 37}{space 2} .0933608{col 48}{space 1}  -31.68{col 57}{space 3}0.000{col 65}{space 4}-3.140848{col 78}{space 3} -2.77488
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 one_female same_room_X_one_female both_female same_room_X_both_female}{p_end}
{p2colreset}{...}

{res}{txt}{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37} Delta-method
{col 25}{c |}      dy/dx{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [95% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}same_room {c |}{col 25}{res}{space 2} .0000145{col 37}{space 2} .0008319{col 48}{space 1}    0.02{col 57}{space 3}0.986{col 65}{space 4}-.0016161{col 78}{space 3}  .001645
{txt}{space 18}dum_1 {c |}{col 25}{res}{space 2}  .000331{col 37}{space 2} .0006971{col 48}{space 1}    0.47{col 57}{space 3}0.635{col 65}{space 4}-.0010352{col 78}{space 3} .0016972
{txt}{space 18}dum_2 {c |}{col 25}{res}{space 2} .0009977{col 37}{space 2} .0006429{col 48}{space 1}    1.55{col 57}{space 3}0.121{col 65}{space 4}-.0002624{col 78}{space 3} .0022578
{txt}{space 13}one_female {c |}{col 25}{res}{space 2}-.0009205{col 37}{space 2} .0007219{col 48}{space 1}   -1.28{col 57}{space 3}0.202{col 65}{space 4}-.0023354{col 78}{space 3} .0004943
{txt}{space 1}same_room_X_one_female {c |}{col 25}{res}{space 2}  .001939{col 37}{space 2}  .001239{col 48}{space 1}    1.56{col 57}{space 3}0.118{col 65}{space 4}-.0004894{col 78}{space 3} .0043675
{txt}{space 12}both_female {c |}{col 25}{res}{space 2}-.0009165{col 37}{space 2} .0013556{col 48}{space 1}   -0.68{col 57}{space 3}0.499{col 65}{space 4}-.0035734{col 78}{space 3} .0017403
{txt}same_room_X_both_female {c |}{col 25}{res}{space 2} .0028876{col 37}{space 2} .0019687{col 48}{space 1}    1.47{col 57}{space 3}0.142{col 65}{space 4} -.000971{col 78}{space 3} .0067463
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactparts2.ster, replace
{res}{txt}file pdyad_interactparts2.ster saved

{com}. 
. probit any_coapplicant same_room dum_1 dum_2 same_inst same_room_X_same_inst ///
> if same_night==1 , r 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-352.21576}  
Iteration 2:{space 3}log pseudolikelihood = {res:-345.06395}  
Iteration 3:{space 3}log pseudolikelihood = {res:-345.00257}  
Iteration 4:{space 3}log pseudolikelihood = {res:-345.00251}  
Iteration 5:{space 3}log pseudolikelihood = {res:-345.00251}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}5{txt}){col 67}= {res}     47.89
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-345.00251{txt}{col 51}Pseudo R2{col 67}= {res}    0.0680

{txt}{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35}    Robust
{col 1}      any_coapplicant{col 23}{c |}      Coef.{col 35}   Std. Err.{col 47}      z{col 55}   P>|z|{col 63}     [95% Con{col 76}f. Interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}same_room {c |}{col 23}{res}{space 2}  .224587{col 35}{space 2} .1393747{col 46}{space 1}    1.61{col 55}{space 3}0.107{col 63}{space 4}-.0485824{col 76}{space 3} .4977564
{txt}{space 16}dum_1 {c |}{col 23}{res}{space 2} .0749746{col 35}{space 2} .1197547{col 46}{space 1}    0.63{col 55}{space 3}0.531{col 63}{space 4}-.1597403{col 76}{space 3} .3096895
{txt}{space 16}dum_2 {c |}{col 23}{res}{space 2} .2014621{col 35}{space 2} .1100796{col 46}{space 1}    1.83{col 55}{space 3}0.067{col 63}{space 4}-.0142899{col 76}{space 3} .4172141
{txt}{space 12}same_inst {c |}{col 23}{res}{space 2}  .632164{col 35}{space 2} .1166955{col 46}{space 1}    5.42{col 55}{space 3}0.000{col 63}{space 4} .4034449{col 76}{space 3}  .860883
{txt}same_room_X_same_inst {c |}{col 23}{res}{space 2}-.0455791{col 35}{space 2} .1930108{col 46}{space 1}   -0.24{col 55}{space 3}0.813{col 63}{space 4}-.4238734{col 76}{space 3} .3327152
{txt}{space 16}_cons {c |}{col 23}{res}{space 2}-3.296398{col 35}{space 2} .1144049{col 46}{space 1}  -28.81{col 55}{space 3}0.000{col 63}{space 4}-3.520628{col 76}{space 3}-3.072169
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 same_inst same_room_X_same_inst}{p_end}
{p2colreset}{...}

{res}{txt}{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35} Delta-method
{col 23}{c |}      dy/dx{col 35}   Std. Err.{col 47}      z{col 55}   P>|z|{col 63}     [95% Con{col 76}f. Interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}same_room {c |}{col 23}{res}{space 2} .0012994{col 35}{space 2} .0008217{col 46}{space 1}    1.58{col 55}{space 3}0.114{col 63}{space 4}-.0003112{col 76}{space 3} .0029099
{txt}{space 16}dum_1 {c |}{col 23}{res}{space 2} .0004338{col 35}{space 2}  .000696{col 46}{space 1}    0.62{col 55}{space 3}0.533{col 63}{space 4}-.0009305{col 76}{space 3}  .001798
{txt}{space 16}dum_2 {c |}{col 23}{res}{space 2} .0011656{col 35}{space 2} .0006512{col 46}{space 1}    1.79{col 55}{space 3}0.073{col 63}{space 4}-.0001107{col 76}{space 3} .0024419
{txt}{space 12}same_inst {c |}{col 23}{res}{space 2} .0036574{col 35}{space 2} .0008094{col 46}{space 1}    4.52{col 55}{space 3}0.000{col 63}{space 4} .0020711{col 76}{space 3} .0052438
{txt}same_room_X_same_inst {c |}{col 23}{res}{space 2}-.0002637{col 35}{space 2} .0011171{col 46}{space 1}   -0.24{col 55}{space 3}0.813{col 63}{space 4}-.0024531{col 76}{space 3} .0019257
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactparts3.ster, replace
{res}{txt}file pdyad_interactparts3.ster saved

{com}. 
. probit any_coapplicant same_room dum_1 dum_2 both_longwood same_room_X_both_longwood ///
> if same_night==1 , r 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-366.40137}  
Iteration 2:{space 3}log pseudolikelihood = {res:-366.25702}  
Iteration 3:{space 3}log pseudolikelihood = {res:-366.25681}  
Iteration 4:{space 3}log pseudolikelihood = {res:-366.25681}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}5{txt}){col 67}= {res}      7.65
{txt}{col 51}Prob > chi2{col 67}= {res}    0.1768
{txt}Log pseudolikelihood = {res}-366.25681{txt}{col 51}Pseudo R2{col 67}= {res}    0.0106

{txt}{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}          any_coapplicant{col 27}{c |}      Coef.{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 16}same_room {c |}{col 27}{res}{space 2}  .248155{col 39}{space 2} .1054838{col 50}{space 1}    2.35{col 59}{space 3}0.019{col 67}{space 4} .0414106{col 80}{space 3} .4548995
{txt}{space 20}dum_1 {c |}{col 27}{res}{space 2} .0535231{col 39}{space 2} .1144566{col 50}{space 1}    0.47{col 59}{space 3}0.640{col 67}{space 4}-.1708078{col 80}{space 3}  .277854
{txt}{space 20}dum_2 {c |}{col 27}{res}{space 2} .1598535{col 39}{space 2}  .105046{col 50}{space 1}    1.52{col 59}{space 3}0.128{col 67}{space 4} -.046033{col 80}{space 3} .3657399
{txt}{space 12}both_longwood {c |}{col 27}{res}{space 2} .0836107{col 39}{space 2} .1187254{col 50}{space 1}    0.70{col 59}{space 3}0.481{col 67}{space 4}-.1490868{col 80}{space 3} .3163083
{txt}same_room_X_both_longwood {c |}{col 27}{res}{space 2}-.2869894{col 39}{space 2} .2291372{col 50}{space 1}   -1.25{col 59}{space 3}0.210{col 67}{space 4}-.7360901{col 80}{space 3} .1621112
{txt}{space 20}_cons {c |}{col 27}{res}{space 2}-3.046064{col 39}{space 2} .0979604{col 50}{space 1}  -31.09{col 59}{space 3}0.000{col 67}{space 4}-3.238063{col 80}{space 3}-2.854066
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 both_longwood same_room_X_both_longwood}{p_end}
{p2colreset}{...}

{res}{txt}{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39} Delta-method
{col 27}{c |}      dy/dx{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 16}same_room {c |}{col 27}{res}{space 2} .0014993{col 39}{space 2} .0006636{col 50}{space 1}    2.26{col 59}{space 3}0.024{col 67}{space 4} .0001987{col 80}{space 3} .0027998
{txt}{space 20}dum_1 {c |}{col 27}{res}{space 2} .0003234{col 39}{space 2} .0006927{col 50}{space 1}    0.47{col 59}{space 3}0.641{col 67}{space 4}-.0010342{col 80}{space 3}  .001681
{txt}{space 20}dum_2 {c |}{col 27}{res}{space 2} .0009658{col 39}{space 2} .0006455{col 50}{space 1}    1.50{col 59}{space 3}0.135{col 67}{space 4}-.0002994{col 80}{space 3}  .002231
{txt}{space 12}both_longwood {c |}{col 27}{res}{space 2} .0005052{col 39}{space 2} .0007199{col 50}{space 1}    0.70{col 59}{space 3}0.483{col 67}{space 4}-.0009057{col 80}{space 3}  .001916
{txt}same_room_X_both_longwood {c |}{col 27}{res}{space 2}-.0017339{col 39}{space 2} .0014002{col 50}{space 1}   -1.24{col 59}{space 3}0.216{col 67}{space 4}-.0044782{col 80}{space 3} .0010103
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactparts4.ster, replace
{res}{txt}file pdyad_interactparts4.ster saved

{com}. 
. probit any_coapplicant same_room dum_1 dum_2 one_imager same_room_X_one_imager both_imager same_room_X_both_imager ///
> if same_night==1 , r 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-360.54513}  
Iteration 2:{space 3}log pseudolikelihood = {res:-359.31245}  
Iteration 3:{space 3}log pseudolikelihood = {res:-359.31055}  
Iteration 4:{space 3}log pseudolikelihood = {res:-359.31055}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}7{txt}){col 67}= {res}     22.57
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0020
{txt}Log pseudolikelihood = {res}-359.31055{txt}{col 51}Pseudo R2{col 67}= {res}    0.0293

{txt}{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}        any_coapplicant{col 25}{c |}      Coef.{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [95% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}same_room {c |}{col 25}{res}{space 2}  .338401{col 37}{space 2} .2100116{col 48}{space 1}    1.61{col 57}{space 3}0.107{col 65}{space 4}-.0732142{col 78}{space 3} .7500161
{txt}{space 18}dum_1 {c |}{col 25}{res}{space 2} .0264063{col 37}{space 2} .1154754{col 48}{space 1}    0.23{col 57}{space 3}0.819{col 65}{space 4}-.1999213{col 78}{space 3} .2527339
{txt}{space 18}dum_2 {c |}{col 25}{res}{space 2} .1612468{col 37}{space 2} .1058256{col 48}{space 1}    1.52{col 57}{space 3}0.128{col 65}{space 4}-.0461675{col 78}{space 3} .3686611
{txt}{space 13}one_imager {c |}{col 25}{res}{space 2} .2845677{col 37}{space 2} .1625765{col 48}{space 1}    1.75{col 57}{space 3}0.080{col 65}{space 4}-.0340764{col 78}{space 3} .6032119
{txt}{space 1}same_room_X_one_imager {c |}{col 25}{res}{space 2}-.1612953{col 37}{space 2} .2473165{col 48}{space 1}   -0.65{col 57}{space 3}0.514{col 65}{space 4}-.6460268{col 78}{space 3} .3234363
{txt}{space 12}both_imager {c |}{col 25}{res}{space 2} .5705874{col 37}{space 2} .1675324{col 48}{space 1}    3.41{col 57}{space 3}0.001{col 65}{space 4} .2422299{col 78}{space 3} .8989448
{txt}same_room_X_both_imager {c |}{col 25}{res}{space 2} -.230431{col 37}{space 2} .2685978{col 48}{space 1}   -0.86{col 57}{space 3}0.391{col 65}{space 4}-.7568731{col 78}{space 3} .2960111
{txt}{space 18}_cons {c |}{col 25}{res}{space 2}-3.313155{col 37}{space 2} .1540181{col 48}{space 1}  -21.51{col 57}{space 3}0.000{col 65}{space 4}-3.615025{col 78}{space 3}-3.011285
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 one_imager same_room_X_one_imager both_imager same_room_X_both_imager}{p_end}
{p2colreset}{...}

{res}{txt}{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37} Delta-method
{col 25}{c |}      dy/dx{col 37}   Std. Err.{col 49}      z{col 57}   P>|z|{col 65}     [95% Con{col 78}f. Interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}same_room {c |}{col 25}{res}{space 2}  .002017{col 37}{space 2} .0012788{col 48}{space 1}    1.58{col 57}{space 3}0.115{col 65}{space 4}-.0004894{col 78}{space 3} .0045235
{txt}{space 18}dum_1 {c |}{col 25}{res}{space 2} .0001574{col 37}{space 2} .0006885{col 48}{space 1}    0.23{col 57}{space 3}0.819{col 65}{space 4} -.001192{col 78}{space 3} .0015068
{txt}{space 18}dum_2 {c |}{col 25}{res}{space 2} .0009611{col 37}{space 2} .0006424{col 48}{space 1}    1.50{col 57}{space 3}0.135{col 65}{space 4}-.0002981{col 78}{space 3} .0022203
{txt}{space 13}one_imager {c |}{col 25}{res}{space 2} .0016962{col 37}{space 2} .0009928{col 48}{space 1}    1.71{col 57}{space 3}0.088{col 65}{space 4}-.0002498{col 78}{space 3} .0036421
{txt}{space 1}same_room_X_one_imager {c |}{col 25}{res}{space 2}-.0009614{col 37}{space 2} .0014804{col 48}{space 1}   -0.65{col 57}{space 3}0.516{col 65}{space 4}-.0038629{col 78}{space 3} .0019401
{txt}{space 12}both_imager {c |}{col 25}{res}{space 2}  .003401{col 37}{space 2} .0010864{col 48}{space 1}    3.13{col 57}{space 3}0.002{col 65}{space 4} .0012717{col 78}{space 3} .0055303
{txt}same_room_X_both_imager {c |}{col 25}{res}{space 2}-.0013735{col 37}{space 2} .0016112{col 48}{space 1}   -0.85{col 57}{space 3}0.394{col 65}{space 4}-.0045315{col 78}{space 3} .0017845
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactparts5.ster, replace
{res}{txt}file pdyad_interactparts5.ster saved

{com}. 
. probit any_coapplicant same_room dum_1 dum_2 same_clinicalarea same_room_X_same_clinicalarea ///
> if same_night==1 , r 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-367.27305}  
Iteration 2:{space 3}log pseudolikelihood = {res:-352.62686}  
Iteration 3:{space 3}log pseudolikelihood = {res:  -352.595}  
Iteration 4:{space 3}log pseudolikelihood = {res:-352.59499}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}5{txt}){col 67}= {res}     44.15
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-352.59499{txt}{col 51}Pseudo R2{col 67}= {res}    0.0475

{txt}{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}              any_coapplicant{col 31}{c |}      Coef.{col 43}   Std. Err.{col 55}      z{col 63}   P>|z|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}same_room {c |}{col 31}{res}{space 2} .0146348{col 43}{space 2}   .12504{col 54}{space 1}    0.12{col 63}{space 3}0.907{col 71}{space 4}-.2304391{col 84}{space 3} .2597088
{txt}{space 24}dum_1 {c |}{col 31}{res}{space 2} .0868079{col 43}{space 2} .1176484{col 54}{space 1}    0.74{col 63}{space 3}0.461{col 71}{space 4}-.1437787{col 84}{space 3} .3173945
{txt}{space 24}dum_2 {c |}{col 31}{res}{space 2} .1845846{col 43}{space 2} .1072249{col 54}{space 1}    1.72{col 63}{space 3}0.085{col 71}{space 4}-.0255724{col 84}{space 3} .3947416
{txt}{space 12}same_clinicalarea {c |}{col 31}{res}{space 2} .3499485{col 43}{space 2} .1279387{col 54}{space 1}    2.74{col 63}{space 3}0.006{col 71}{space 4} .0991933{col 84}{space 3} .6007036
{txt}same_room_X_same_clinicalarea {c |}{col 31}{res}{space 2} .4358529{col 43}{space 2} .2044851{col 54}{space 1}    2.13{col 63}{space 3}0.033{col 71}{space 4} .0350695{col 84}{space 3} .8366363
{txt}{space 24}_cons {c |}{col 31}{res}{space 2}-3.106738{col 43}{space 2}  .087842{col 54}{space 1}  -35.37{col 63}{space 3}0.000{col 71}{space 4}-3.278905{col 84}{space 3}-2.934571
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 same_clinicalarea same_room_X_same_clinicalarea}{p_end}
{p2colreset}{...}

{res}{txt}{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43} Delta-method
{col 31}{c |}      dy/dx{col 43}   Std. Err.{col 55}      z{col 63}   P>|z|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}same_room {c |}{col 31}{res}{space 2} .0000859{col 43}{space 2} .0007342{col 54}{space 1}    0.12{col 63}{space 3}0.907{col 71}{space 4} -.001353{col 84}{space 3} .0015249
{txt}{space 24}dum_1 {c |}{col 31}{res}{space 2} .0005096{col 43}{space 2} .0006948{col 54}{space 1}    0.73{col 63}{space 3}0.463{col 71}{space 4}-.0008521{col 84}{space 3} .0018713
{txt}{space 24}dum_2 {c |}{col 31}{res}{space 2} .0010836{col 43}{space 2} .0006441{col 54}{space 1}    1.68{col 63}{space 3}0.092{col 71}{space 4}-.0001788{col 84}{space 3}  .002346
{txt}{space 12}same_clinicalarea {c |}{col 31}{res}{space 2} .0020544{col 43}{space 2} .0007946{col 54}{space 1}    2.59{col 63}{space 3}0.010{col 71}{space 4}  .000497{col 84}{space 3} .0036118
{txt}same_room_X_same_clinicalarea {c |}{col 31}{res}{space 2} .0025587{col 43}{space 2} .0012385{col 54}{space 1}    2.07{col 63}{space 3}0.039{col 71}{space 4} .0001312{col 84}{space 3} .0049862
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactparts6.ster, replace
{res}{txt}file pdyad_interactparts6.ster saved

{com}. 
. probit any_coapplicant same_room dum_1 dum_2 previouscoauthor same_room_X_previouscoau ///
> if same_night==1 , r 

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-370.17264}  
Iteration 1:{space 3}log pseudolikelihood = {res:-362.53515}  
Iteration 2:{space 3}log pseudolikelihood = {res:-346.81628}  
Iteration 3:{space 3}log pseudolikelihood = {res:-346.65781}  
Iteration 4:{space 3}log pseudolikelihood = {res:-346.65765}  
Iteration 5:{space 3}log pseudolikelihood = {res:-346.65765}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26664
{txt}{col 51}Wald chi2({res}5{txt}){col 67}= {res}     61.27
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-346.65765{txt}{col 51}Pseudo R2{col 67}= {res}    0.0635

{txt}{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}         any_coapplicant{col 26}{c |}      Coef.{col 38}   Std. Err.{col 50}      z{col 58}   P>|z|{col 66}     [95% Con{col 79}f. Interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}same_room {c |}{col 26}{res}{space 2} .1860056{col 38}{space 2} .0970921{col 49}{space 1}    1.92{col 58}{space 3}0.055{col 66}{space 4}-.0042914{col 79}{space 3} .3763027
{txt}{space 19}dum_1 {c |}{col 26}{res}{space 2} .0249579{col 38}{space 2} .1194702{col 49}{space 1}    0.21{col 58}{space 3}0.835{col 66}{space 4}-.2091994{col 79}{space 3} .2591151
{txt}{space 19}dum_2 {c |}{col 26}{res}{space 2} .1363287{col 38}{space 2} .1080227{col 49}{space 1}    1.26{col 58}{space 3}0.207{col 66}{space 4}-.0753918{col 79}{space 3} .3480492
{txt}{space 8}previouscoauthor {c |}{col 26}{res}{space 2} 1.674482{col 38}{space 2} .2716262{col 49}{space 1}    6.16{col 58}{space 3}0.000{col 66}{space 4} 1.142104{col 79}{space 3} 2.206859
{txt}same_room_X_previouscoau {c |}{col 26}{res}{space 2} .6670418{col 38}{space 2} .5934781{col 49}{space 1}    1.12{col 58}{space 3}0.261{col 66}{space 4}-.4961539{col 79}{space 3} 1.830237
{txt}{space 19}_cons {c |}{col 26}{res}{space 2}-3.045157{col 38}{space 2} .0866793{col 49}{space 1}  -35.13{col 58}{space 3}0.000{col 66}{space 4}-3.215045{col 79}{space 3}-2.875269
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26664
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 previouscoauthor same_room_X_previouscoau}{p_end}
{p2colreset}{...}

{res}{txt}{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38} Delta-method
{col 26}{c |}      dy/dx{col 38}   Std. Err.{col 50}      z{col 58}   P>|z|{col 66}     [95% Con{col 79}f. Interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}same_room {c |}{col 26}{res}{space 2} .0010702{col 38}{space 2} .0005746{col 49}{space 1}    1.86{col 58}{space 3}0.063{col 66}{space 4}-.0000559{col 79}{space 3} .0021963
{txt}{space 19}dum_1 {c |}{col 26}{res}{space 2} .0001436{col 38}{space 2} .0006875{col 49}{space 1}    0.21{col 58}{space 3}0.835{col 66}{space 4} -.001204{col 79}{space 3} .0014912
{txt}{space 19}dum_2 {c |}{col 26}{res}{space 2} .0007844{col 38}{space 2} .0006264{col 49}{space 1}    1.25{col 58}{space 3}0.210{col 66}{space 4}-.0004433{col 79}{space 3}  .002012
{txt}{space 8}previouscoauthor {c |}{col 26}{res}{space 2}  .009634{col 38}{space 2} .0019456{col 49}{space 1}    4.95{col 58}{space 3}0.000{col 66}{space 4} .0058207{col 79}{space 3} .0134472
{txt}same_room_X_previouscoau {c |}{col 26}{res}{space 2} .0038378{col 38}{space 2} .0034343{col 49}{space 1}    1.12{col 58}{space 3}0.264{col 66}{space 4}-.0028933{col 79}{space 3} .0105688
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactparts7.ster, replace
{res}{txt}file pdyad_interactparts7.ster saved

{com}. 
. probit any_coapplicant same_room dum_1 dum_2 onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc ///
> one_female same_room_X_one_female both_female same_room_X_both_female ///
> same_inst same_room_X_same_inst both_longwood same_room_X_both_longwood ///
> one_imager same_room_X_one_imager both_imager same_room_X_both_imager same_clinicalarea same_room_X_same_clinicalarea ///
> previouscoauthor same_room_X_previouscoau ///
> if same_night==1 , r

{txt}note: same_room_X_bothpostdoc != 0 predicts failure perfectly
      same_room_X_bothpostdoc dropped and 480 obs not used

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-369.24529}  
Iteration 1:{space 3}log pseudolikelihood = {res:-336.25778}  
Iteration 2:{space 3}log pseudolikelihood = {res:-304.43456}  
Iteration 3:{space 3}log pseudolikelihood = {res:-304.19317}  
Iteration 4:{space 3}log pseudolikelihood = {res:-304.19302}  
Iteration 5:{space 3}log pseudolikelihood = {res:-304.19302}  
{res}
{txt}Probit regression{col 51}Number of obs{col 67}= {res}     26184
{txt}{col 51}Wald chi2({res}22{txt}){col 67}= {res}    160.84
{txt}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-304.19302{txt}{col 51}Pseudo R2{col 67}= {res}    0.1762

{txt}{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}              any_coapplicant{col 31}{c |}      Coef.{col 43}   Std. Err.{col 55}      z{col 63}   P>|z|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}same_room {c |}{col 31}{res}{space 2}-.0438355{col 43}{space 2} .3366542{col 54}{space 1}   -0.13{col 63}{space 3}0.896{col 71}{space 4}-.7036656{col 84}{space 3} .6159946
{txt}{space 24}dum_1 {c |}{col 31}{res}{space 2} .0383346{col 43}{space 2} .1293204{col 54}{space 1}    0.30{col 63}{space 3}0.767{col 71}{space 4}-.2151288{col 84}{space 3}  .291798
{txt}{space 24}dum_2 {c |}{col 31}{res}{space 2} .1817274{col 43}{space 2} .1190087{col 54}{space 1}    1.53{col 63}{space 3}0.127{col 71}{space 4}-.0515254{col 84}{space 3} .4149801
{txt}{space 19}onepostdoc {c |}{col 31}{res}{space 2}-.2896029{col 43}{space 2}  .143008{col 54}{space 1}   -2.03{col 63}{space 3}0.043{col 71}{space 4}-.5698934{col 84}{space 3}-.0093123
{txt}{space 7}same_room_X_onepostdoc {c |}{col 31}{res}{space 2}   .34297{col 43}{space 2} .2275174{col 54}{space 1}    1.51{col 63}{space 3}0.132{col 71}{space 4}-.1029559{col 84}{space 3} .7888959
{txt}{space 18}bothpostdoc {c |}{col 31}{res}{space 2}-.2510536{col 43}{space 2} .3198849{col 54}{space 1}   -0.78{col 63}{space 3}0.433{col 71}{space 4}-.8780165{col 84}{space 3} .3759092
{txt}{space 6}same_room_X_bothpostdoc {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 19}one_female {c |}{col 31}{res}{space 2}-.0772221{col 43}{space 2} .1321865{col 54}{space 1}   -0.58{col 63}{space 3}0.559{col 71}{space 4}-.3363029{col 84}{space 3} .1818587
{txt}{space 7}same_room_X_one_female {c |}{col 31}{res}{space 2} .3725529{col 43}{space 2} .2327331{col 54}{space 1}    1.60{col 63}{space 3}0.109{col 71}{space 4}-.0835956{col 84}{space 3} .8287013
{txt}{space 18}both_female {c |}{col 31}{res}{space 2}-.0529632{col 43}{space 2} .2379799{col 54}{space 1}   -0.22{col 63}{space 3}0.824{col 71}{space 4}-.5193953{col 84}{space 3} .4134689
{txt}{space 6}same_room_X_both_female {c |}{col 31}{res}{space 2} .3915271{col 43}{space 2} .3486425{col 54}{space 1}    1.12{col 63}{space 3}0.261{col 71}{space 4}-.2917996{col 84}{space 3} 1.074854
{txt}{space 20}same_inst {c |}{col 31}{res}{space 2} .5638829{col 43}{space 2}  .122486{col 54}{space 1}    4.60{col 63}{space 3}0.000{col 71}{space 4} .3238147{col 84}{space 3} .8039511
{txt}{space 8}same_room_X_same_inst {c |}{col 31}{res}{space 2} .0580643{col 43}{space 2} .2057551{col 54}{space 1}    0.28{col 63}{space 3}0.778{col 71}{space 4}-.3452082{col 84}{space 3} .4613368
{txt}{space 16}both_longwood {c |}{col 31}{res}{space 2} .0993383{col 43}{space 2} .1383385{col 54}{space 1}    0.72{col 63}{space 3}0.473{col 71}{space 4}-.1718001{col 84}{space 3} .3704768
{txt}{space 4}same_room_X_both_longwood {c |}{col 31}{res}{space 2} -.275794{col 43}{space 2} .2668362{col 54}{space 1}   -1.03{col 63}{space 3}0.301{col 71}{space 4}-.7987834{col 84}{space 3} .2471953
{txt}{space 19}one_imager {c |}{col 31}{res}{space 2} .3043324{col 43}{space 2} .1750842{col 54}{space 1}    1.74{col 63}{space 3}0.082{col 71}{space 4}-.0388263{col 84}{space 3} .6474912
{txt}{space 7}same_room_X_one_imager {c |}{col 31}{res}{space 2}-.2058335{col 43}{space 2} .2708445{col 54}{space 1}   -0.76{col 63}{space 3}0.447{col 71}{space 4}-.7366789{col 84}{space 3} .3250119
{txt}{space 18}both_imager {c |}{col 31}{res}{space 2} .5423041{col 43}{space 2} .1921131{col 54}{space 1}    2.82{col 63}{space 3}0.005{col 71}{space 4} .1657694{col 84}{space 3} .9188388
{txt}{space 6}same_room_X_both_imager {c |}{col 31}{res}{space 2}-.3634146{col 43}{space 2} .2996162{col 54}{space 1}   -1.21{col 63}{space 3}0.225{col 71}{space 4}-.9506515{col 84}{space 3} .2238223
{txt}{space 12}same_clinicalarea {c |}{col 31}{res}{space 2} .3019221{col 43}{space 2} .1417159{col 54}{space 1}    2.13{col 63}{space 3}0.033{col 71}{space 4} .0241641{col 84}{space 3} .5796801
{txt}same_room_X_same_clinicalarea {c |}{col 31}{res}{space 2}  .527512{col 43}{space 2} .2235892{col 54}{space 1}    2.36{col 63}{space 3}0.018{col 71}{space 4} .0892852{col 84}{space 3} .9657388
{txt}{space 13}previouscoauthor {c |}{col 31}{res}{space 2} 1.328409{col 43}{space 2} .2836456{col 54}{space 1}    4.68{col 63}{space 3}0.000{col 71}{space 4} .7724739{col 84}{space 3} 1.884344
{txt}{space 5}same_room_X_previouscoau {c |}{col 31}{res}{space 2} .7997936{col 43}{space 2} .5971322{col 54}{space 1}    1.34{col 63}{space 3}0.180{col 71}{space 4} -.370564{col 84}{space 3} 1.970151
{txt}{space 24}_cons {c |}{col 31}{res}{space 2} -3.53825{col 43}{space 2} .2055562{col 54}{space 1}  -17.21{col 63}{space 3}0.000{col 71}{space 4}-3.941133{col 84}{space 3}-3.135367
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estpost margins, dydx(*)
{res}
{txt}Average marginal effects{col 51}Number of obs{col 67}= {res}     26184
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(any_coapplicant), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:same_room dum_1 dum_2 onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc one_female same_room_X_one_female both_female same_room_X_both_female same_inst same_room_X_same_inst both_longwood same_room_X_both_longwood one_imager same_room_X_one_imager both_imager same_room_X_both_imager same_clinicalarea same_room_X_same_clinicalarea previouscoauthor same_room_X_previouscoau}{p_end}
{p2colreset}{...}

{res}{txt}{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43} Delta-method
{col 31}{c |}      dy/dx{col 43}   Std. Err.{col 55}      z{col 63}   P>|z|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}same_room {c |}{col 31}{res}{space 2}-.0002333{col 43}{space 2} .0017911{col 54}{space 1}   -0.13{col 63}{space 3}0.896{col 71}{space 4}-.0037438{col 84}{space 3} .0032772
{txt}{space 24}dum_1 {c |}{col 31}{res}{space 2} .0002041{col 43}{space 2} .0006891{col 54}{space 1}    0.30{col 63}{space 3}0.767{col 71}{space 4}-.0011466{col 84}{space 3} .0015547
{txt}{space 24}dum_2 {c |}{col 31}{res}{space 2} .0009673{col 43}{space 2} .0006394{col 54}{space 1}    1.51{col 63}{space 3}0.130{col 71}{space 4}-.0002859{col 84}{space 3} .0022206
{txt}{space 19}onepostdoc {c |}{col 31}{res}{space 2}-.0015416{col 43}{space 2} .0007814{col 54}{space 1}   -1.97{col 63}{space 3}0.049{col 71}{space 4}-.0030731{col 84}{space 3}-9.96e-06
{txt}{space 7}same_room_X_onepostdoc {c |}{col 31}{res}{space 2} .0018256{col 43}{space 2} .0012274{col 54}{space 1}    1.49{col 63}{space 3}0.137{col 71}{space 4}-.0005801{col 84}{space 3} .0042314
{txt}{space 18}bothpostdoc {c |}{col 31}{res}{space 2}-.0013364{col 43}{space 2} .0017027{col 54}{space 1}   -0.78{col 63}{space 3}0.433{col 71}{space 4}-.0046736{col 84}{space 3} .0020008
{txt}{space 6}same_room_X_bothpostdoc {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 19}one_female {c |}{col 31}{res}{space 2}-.0004111{col 43}{space 2} .0007041{col 54}{space 1}   -0.58{col 63}{space 3}0.559{col 71}{space 4} -.001791{col 84}{space 3} .0009689
{txt}{space 7}same_room_X_one_female {c |}{col 31}{res}{space 2} .0019831{col 43}{space 2} .0012572{col 54}{space 1}    1.58{col 63}{space 3}0.115{col 71}{space 4}-.0004811{col 84}{space 3} .0044473
{txt}{space 18}both_female {c |}{col 31}{res}{space 2}-.0002819{col 43}{space 2} .0012686{col 54}{space 1}   -0.22{col 63}{space 3}0.824{col 71}{space 4}-.0027683{col 84}{space 3} .0022045
{txt}{space 6}same_room_X_both_female {c |}{col 31}{res}{space 2} .0020841{col 43}{space 2} .0018678{col 54}{space 1}    1.12{col 63}{space 3}0.265{col 71}{space 4}-.0015767{col 84}{space 3} .0057449
{txt}{space 20}same_inst {c |}{col 31}{res}{space 2} .0030015{col 43}{space 2} .0007484{col 54}{space 1}    4.01{col 63}{space 3}0.000{col 71}{space 4} .0015347{col 84}{space 3} .0044684
{txt}{space 8}same_room_X_same_inst {c |}{col 31}{res}{space 2} .0003091{col 43}{space 2} .0010964{col 54}{space 1}    0.28{col 63}{space 3}0.778{col 71}{space 4}-.0018399{col 84}{space 3} .0024581
{txt}{space 16}both_longwood {c |}{col 31}{res}{space 2} .0005288{col 43}{space 2} .0007383{col 54}{space 1}    0.72{col 63}{space 3}0.474{col 71}{space 4}-.0009184{col 84}{space 3} .0019759
{txt}{space 4}same_room_X_both_longwood {c |}{col 31}{res}{space 2} -.001468{col 43}{space 2} .0014324{col 54}{space 1}   -1.02{col 63}{space 3}0.305{col 71}{space 4}-.0042756{col 84}{space 3} .0013395
{txt}{space 19}one_imager {c |}{col 31}{res}{space 2}   .00162{col 43}{space 2} .0009565{col 54}{space 1}    1.69{col 63}{space 3}0.090{col 71}{space 4}-.0002548{col 84}{space 3} .0034948
{txt}{space 7}same_room_X_one_imager {c |}{col 31}{res}{space 2}-.0010956{col 43}{space 2}  .001451{col 54}{space 1}   -0.76{col 63}{space 3}0.450{col 71}{space 4}-.0039396{col 84}{space 3} .0017483
{txt}{space 18}both_imager {c |}{col 31}{res}{space 2} .0028867{col 43}{space 2} .0010831{col 54}{space 1}    2.67{col 63}{space 3}0.008{col 71}{space 4} .0007639{col 84}{space 3} .0050094
{txt}{space 6}same_room_X_both_imager {c |}{col 31}{res}{space 2}-.0019345{col 43}{space 2} .0016277{col 54}{space 1}   -1.19{col 63}{space 3}0.235{col 71}{space 4}-.0051248{col 84}{space 3} .0012559
{txt}{space 12}same_clinicalarea {c |}{col 31}{res}{space 2} .0016071{col 43}{space 2} .0007854{col 54}{space 1}    2.05{col 63}{space 3}0.041{col 71}{space 4} .0000678{col 84}{space 3} .0031464
{txt}same_room_X_same_clinicalarea {c |}{col 31}{res}{space 2} .0028079{col 43}{space 2} .0012314{col 54}{space 1}    2.28{col 63}{space 3}0.023{col 71}{space 4} .0003944{col 84}{space 3} .0052215
{txt}{space 13}previouscoauthor {c |}{col 31}{res}{space 2} .0070711{col 43}{space 2} .0017192{col 54}{space 1}    4.11{col 63}{space 3}0.000{col 71}{space 4} .0037015{col 84}{space 3} .0104408
{txt}{space 5}same_room_X_previouscoau {c |}{col 31}{res}{space 2} .0042573{col 43}{space 2} .0032053{col 54}{space 1}    1.33{col 63}{space 3}0.184{col 71}{space 4} -.002025{col 84}{space 3} .0105395
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates save pdyad_interactpartsall.ster, replace
{res}{txt}file pdyad_interactpartsall.ster saved

{com}. 
. 
. estimates drop _all
{txt}
{com}. forvalues n=1(1)7 {c -(} 
{txt}  2{com}. estimates use dyad_interactparts`n'.ster
{txt}  3{com}. eststo
{txt}  4{com}. {c )-}
{res}{txt}({res}est1{txt} stored)
{res}{txt}({res}est2{txt} stored)
{res}{txt}({res}est3{txt} stored)
{res}{txt}({res}est4{txt} stored)
{res}{txt}({res}est5{txt} stored)
{res}{txt}({res}est6{txt} stored)
{res}{txt}({res}est7{txt} stored)

{com}. estimates use dyad_interactpartsall.ster
{res}{txt}
{com}. eststo
{txt}({res}est8{txt} stored)

{com}. 
. #delimit ;
{txt}delimiter now ;
{com}. esttab * using dyad_regs_interactparts.rtf,  keep(same_room onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc ///
> one_female same_room_X_one_female both_female same_room_X_both_female ///
> same_inst same_room_X_same_inst both_longwood same_room_X_both_longwood ////
> one_imager same_room_X_one_imager both_imager same_room_X_both_imager same_clinicalarea same_room_X_same_clinicalarea ///
> previouscoauthor same_room_X_previouscoau  /* _cons*/)
> varwidth(25) modelwidth(5) nonumber noobs nogaps nodep label b(%5.4f) se(%5.4f) star(+ 0.10 * 0.05 ** 0.01) 
> compress scalars("r2 R2"  "N Nb. of Obs.") sfmt(%10.3fc %10.0fc) 
> mlabels("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)")  
> indicate("Night fixed effects =dum_1") 
> eqlabels(none) replace;
{res}{txt}(output written to {browse  `"dyad_regs_interactparts.rtf"'})

{com}. #delimit cr
{txt}delimiter now cr
{com}. 
. 
. 
. 
. estimates drop _all
{txt}
{com}. eststo clear
{txt}
{com}. forvalues n=1(1)7 {c -(} 
{txt}  2{com}. estimates use pdyad_interactparts`n'.ster
{txt}  3{com}. eststo
{txt}  4{com}. {c )-}
{res}{txt}({res}est1{txt} stored)
{res}{txt}({res}est2{txt} stored)
{res}{txt}({res}est3{txt} stored)
{res}{txt}({res}est4{txt} stored)
{res}{txt}({res}est5{txt} stored)
{res}{txt}({res}est6{txt} stored)
{res}{txt}({res}est7{txt} stored)

{com}. estimates use pdyad_interactpartsall.ster
{res}{txt}
{com}. eststo
{txt}({res}est8{txt} stored)

{com}. 
. #delimit ;
{txt}delimiter now ;
{com}. esttab * using pdyad_regs_interactparts.rtf,  keep(same_room onepostdoc same_room_X_onepostdoc bothpostdoc same_room_X_bothpostdoc ///
> one_female same_room_X_one_female both_female same_room_X_both_female ///
> same_inst same_room_X_same_inst both_longwood same_room_X_both_longwood ////
> one_imager same_room_X_one_imager both_imager same_room_X_both_imager same_clinicalarea same_room_X_same_clinicalarea ///
> previouscoauthor same_room_X_previouscoau  /* _cons*/)
> varwidth(25) modelwidth(5) nonumber noobs nogaps nodep label b(%5.4f) se(%5.4f) star(+ 0.10 * 0.05 ** 0.01) 
> compress scalars("r2 R2"  "N Nb. of Obs.") sfmt(%10.3fc %10.0fc) 
> mlabels("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)")  
> indicate("Night fixed effects =dum_1") 
> eqlabels(none) replace;
{res}{txt}(output written to {browse  `"pdyad_regs_interactparts.rtf"'})

{com}. #delimit cr
{txt}delimiter now cr
{com}. 
. 
. capture log close
{smcl}
{com}{sf}{ul off}